Manages the themes within the component. More...
Public Member Functions | |
Theme * | createOrRetrieve (const nkMemory::StringView &name) |
Theme * | get (const nkMemory::StringView &name) const |
Theme * | getActiveTheme () const |
void | setActiveTheme (Theme *theme) |
Manages the themes within the component.
A Manager is always responsible for the resources allocated using it.
Theme* nkWinUi::ThemeManager::createOrRetrieve | ( | const nkMemory::StringView & | name | ) |
Creates if unavailable, or retrieve if available, a theme.
name | The name of the theme to retrieve. |
Theme* nkWinUi::ThemeManager::get | ( | const nkMemory::StringView & | name | ) | const |
Request for a theme attached to a name.
name | The name of the theme wanted. |
Theme* nkWinUi::ThemeManager::getActiveTheme | ( | ) | const |
void nkWinUi::ThemeManager::setActiveTheme | ( | Theme * | theme | ) |
Sets the active theme to use within the component.
theme | The theme to use when drawing the windows in the component. |